package com.zmkj.taobao.taobaoorderservice.entity;

import lombok.Data;

@Data
public class Product {
    private Integer id;//商品编号
    private String productName;//商品名称
    private double productPrice;//商品价格
    private Integer productNumber;//商品库存
    private Integer orderId;//订单编号

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 带参构造方法
     * @param id
     * @param productName
     * @param productPrice
     * @param productNumber
     */
    public Product(Integer id, String productName, double productPrice, Integer productNumber, Integer orderId) {
        this.id = id;
        this.productName = productName;
        this.productPrice = productPrice;
        this.productNumber = productNumber;
        this.orderId = orderId;
    }

    /**
     * 无参构造方法
     */
    public Product(){

    }
}
